package pig.model;

import java.util.List;


public interface CommonService {

	//QNA 게시판	
	void write(BoardVO bvo);
	BoardVO showContentNoHit(int no);
	BoardVO showContent(int no);
	void replyWrite(BoardVO bvo);
	void deleteBoard(String no);
	void updateBoard(BoardVO bvo);
	ListVO getQNAList(String pageNo, String dealNumber);
	
	// 상품명으로 리스트 찾기
	List<DealVO> findDealByTitle(String dealName);
	List<DealVO> findAllDealList();
	List<DealVO> dealListByCategory(String category);
	List<DealVO> findDealByEndDate(String category);
	List<DealVO> findDealByRegisterDate(String category);
	List<DealVO> findDealByHighPrice(String category);
	List<DealVO> findDealByLowPrice(String category);
	List<DealVO> findAllDeal();
	
	// 아이디 찾기
	String findCustomerId(String name, String email);
	String findSellerId(String name, String email);
	
	// 암호찾기
	String findCustomerPassword(String id, String email);
	String findSellerPassword(String id, String email);
	
	// 로그인
	CustomerVO customerLogin(String id, String password);
	SellerVO sellerLogin(String id,String password);
	
	//상품 정보 찾기
	DealVO findDealByNumber(String dealNumber);
	
	//쪽지함
	void postMessage(PostBoxVO postBoxVO);
	ListVO postShowSendList(String pageNo,String id, String auth,String post);
	void postShowContentCheck(int postNumber);
	PostBoxVO postShowContent(int postNumber);
	void postSendDeleteCheck(int deleteOk, int postNumber);
	void postReceiveDeleteCheck(int deleteOk, int postNumber);
	void deletePost(int postNumber);
}
